package com.ldg.order;

import com.ld.utils.AlipayTemplate;
import com.ld.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @Author: Liudao
 * @Date: 2022-10-18-14:50
 * @Description:
 */
@SpringBootApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(0,1);
    }
    @Bean
    public AlipayTemplate alipayTemplate(){
        return new AlipayTemplate();
    }

}
